﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace ANTLRTest
{
    public static class Extend
    {
        public static void AddAttribute(this XmlNode node, string attrName, string attrValue)
        {
            XmlAttribute attribute = node.OwnerDocument.CreateAttribute(attrName);
            attribute.Value = attrValue;
            node.Attributes.Append(attribute);
        }
    }
}
